package com.zhaol.oa.controller;

import com.zhaol.oa.entity.Month;
import com.zhaol.oa.mapper.MonthMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
public class MonthController {
    @Autowired
    private MonthMapper monthMapper;
    @RequestMapping("/selectMonthList")
    public List<Month> selectMonthList() {
        return monthMapper.selectMonthList();
    }
}
